package com.neusoft.service.impl;

import com.neusoft.mapper.SchedulingMapper;
import com.neusoft.service.SchedulingService;
import com.neusoft.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author akemihomurasama
 */
@Service
public class SchedulingServiceImpl implements SchedulingService {
    @Autowired
    private SchedulingMapper schedulingMapper;

    /**
     * 根据排班规则查询排班信息
     *
     * @param weekRule 排班规则
     * @return 排班信息
     */
    @Override
    public Result querySchedulingByRule(String weekRule) {
        return Result.ok(schedulingMapper.querySchedulingByRule(weekRule));
    }
}
